chore: add develop branch-protection ruleset and applier#10
Merged
Conversation
Ruleset (to apply once the repo is public — rulesets are unavailable on free private repos) requires PRs + a passing `Lint & Test` check on develop, blocks deletion/force-push, and bypasses the GitHub Actions bot so the release workflow's CHANGELOG push to develop keeps working.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the branch-protection ruleset for
developas version-controlled infra, plus a one-shot applier script.Files
scripts/develop-ruleset.json— ruleset definition: require PR (0 approvals) + passingLint & Test, block deletion/force-push. Bypass actors: GitHub Actions bot (Integration/15368) so the release workflow's CHANGELOG push todevelopisn't blocked, and repo admin (RepositoryRole/5).scripts/apply-develop-ruleset.sh— applies it viagh api.Note
Rulesets are unavailable on free private repos (the API returns 403), so this is applied after making the repo public:
The
15368GitHub Actions app id is correct for github.com; the script documents how to verify it in the UI if a release push is ever rejected.